#include "stdafx.h"
#include "vObject.h"

namespace vview
{

const CRuntimeInfo CVObject::CVObjectRuntimeInfo = 
	{NULL, "CVObject", sizeof(CVObject)};

bool CVObject::IsDerivedFrom( const CRuntimeInfo* pRTInfo )
{
	CRuntimeInfo* pThisRTInfo = GetRuntimeInfo();
	return pThisRTInfo->IsDerivedFrom(pRTInfo);
}

CRuntimeInfo* CVObject::GetRuntimeInfo() const
{
	return RUNTIMEINFO(CVObject);
}

bool CVObject::IsEqualTo( const CRuntimeInfo* pRTInfo )
{
	if (NULL == pRTInfo)
		return false;

	return (GetRuntimeInfo() == pRTInfo);
}

}
